PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Fractal / Mandelbox / martin - X Portal.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=0.952 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=4 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=1.386 |
| 27 | fWaveSmoothing=0.090 |
| 28 | fWaveParam=-0.200 |
| 29 | fModWaveAlphaStart=0.400 |
| 30 | fModWaveAlphaEnd=1.800 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.000 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.000 |
| 55 | ib_r=0.000 |
| 56 | ib_g=0.000 |
| 57 | ib_b=0.000 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=0.900 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=256 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=100.00000 |
| 83 | wavecode_0_smoothing=0.90000 |
| 84 | wavecode_0_r=0.000 |
| 85 | wavecode_0_g=0.700 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_frame1=advance=advance+ 0.012; |
| 89 | wave_0_per_frame2=advance=if( above(advance,2) , 0, advance); |
| 90 | wave_0_per_frame3= |
| 91 | wave_0_per_frame4=t1=advance |
| 92 | wave_0_per_frame5= |
| 93 | wavecode_1_enabled=0 |
| 94 | wavecode_1_samples=42 |
| 95 | wavecode_1_sep=0 |
| 96 | wavecode_1_bSpectrum=0 |
| 97 | wavecode_1_bUseDots=1 |
| 98 | wavecode_1_bDrawThick=0 |
| 99 | wavecode_1_bAdditive=1 |
| 100 | wavecode_1_scaling=81.95444 |
| 101 | wavecode_1_smoothing=1.00000 |
| 102 | wavecode_1_r=1.000 |
| 103 | wavecode_1_g=1.000 |
| 104 | wavecode_1_b=1.000 |
| 105 | wavecode_1_a=1.000 |
| 106 | wave_1_per_frame1=advance=advance+ 0.012; |
| 107 | wave_1_per_frame2=advance=if( above(advance,2) , 0, advance); |
| 108 | wave_1_per_frame3= |
| 109 | wave_1_per_frame4=t1=advance |
| 110 | wavecode_2_enabled=0 |
| 111 | wavecode_2_samples=42 |
| 112 | wavecode_2_sep=0 |
| 113 | wavecode_2_bSpectrum=0 |
| 114 | wavecode_2_bUseDots=1 |
| 115 | wavecode_2_bDrawThick=1 |
| 116 | wavecode_2_bAdditive=1 |
| 117 | wavecode_2_scaling=1.00000 |
| 118 | wavecode_2_smoothing=0.50000 |
| 119 | wavecode_2_r=1.000 |
| 120 | wavecode_2_g=1.000 |
| 121 | wavecode_2_b=1.000 |
| 122 | wavecode_2_a=0.360 |
| 123 | wavecode_3_enabled=0 |
| 124 | wavecode_3_samples=192 |
| 125 | wavecode_3_sep=0 |
| 126 | wavecode_3_bSpectrum=0 |
| 127 | wavecode_3_bUseDots=1 |
| 128 | wavecode_3_bDrawThick=0 |
| 129 | wavecode_3_bAdditive=1 |
| 130 | wavecode_3_scaling=1.00000 |
| 131 | wavecode_3_smoothing=0.50000 |
| 132 | wavecode_3_r=1.000 |
| 133 | wavecode_3_g=1.000 |
| 134 | wavecode_3_b=1.000 |
| 135 | wavecode_3_a=0.320 |
| 136 | shapecode_0_enabled=0 |
| 137 | shapecode_0_sides=4 |
| 138 | shapecode_0_additive=0 |
| 139 | shapecode_0_thickOutline=1 |
| 140 | shapecode_0_textured=1 |
| 141 | shapecode_0_num_inst=1 |
| 142 | shapecode_0_x=0.860 |
| 143 | shapecode_0_y=0.500 |
| 144 | shapecode_0_rad=0.17914 |
| 145 | shapecode_0_ang=0.00000 |
| 146 | shapecode_0_tex_ang=0.00000 |
| 147 | shapecode_0_tex_zoom=1.04902 |
| 148 | shapecode_0_r=1.000 |
| 149 | shapecode_0_g=1.000 |
| 150 | shapecode_0_b=1.000 |
| 151 | shapecode_0_a=0.400 |
| 152 | shapecode_0_r2=1.000 |
| 153 | shapecode_0_g2=1.000 |
| 154 | shapecode_0_b2=1.000 |
| 155 | shapecode_0_a2=0.600 |
| 156 | shapecode_0_border_r=0.590 |
| 157 | shapecode_0_border_g=0.810 |
| 158 | shapecode_0_border_b=0.690 |
| 159 | shapecode_0_border_a=0.000 |
| 160 | shapecode_1_enabled=1 |
| 161 | shapecode_1_sides=4 |
| 162 | shapecode_1_additive=0 |
| 163 | shapecode_1_thickOutline=0 |
| 164 | shapecode_1_textured=1 |
| 165 | shapecode_1_num_inst=1 |
| 166 | shapecode_1_x=0.500 |
| 167 | shapecode_1_y=0.500 |
| 168 | shapecode_1_rad=0.41490 |
| 169 | shapecode_1_ang=0.00000 |
| 170 | shapecode_1_tex_ang=0.25133 |
| 171 | shapecode_1_tex_zoom=0.56608 |
| 172 | shapecode_1_r=1.000 |
| 173 | shapecode_1_g=0.000 |
| 174 | shapecode_1_b=0.000 |
| 175 | shapecode_1_a=1.000 |
| 176 | shapecode_1_r2=1.000 |
| 177 | shapecode_1_g2=0.000 |
| 178 | shapecode_1_b2=0.000 |
| 179 | shapecode_1_a2=1.000 |
| 180 | shapecode_1_border_r=1.000 |
| 181 | shapecode_1_border_g=0.000 |
| 182 | shapecode_1_border_b=0.000 |
| 183 | shapecode_1_border_a=1.000 |
| 184 | shape_1_per_frame1= |
| 185 | shape_1_per_frame2=advx=advx+(bass*bass)/fps; |
| 186 | shape_1_per_frame3=advy=advy+(treb*treb)/fps; |
| 187 | shape_1_per_frame4= |
| 188 | shape_1_per_frame5=r = 1; g = 1; b = 1; |
| 189 | shape_1_per_frame6= |
| 190 | shape_1_per_frame7= |
| 191 | shape_1_per_frame8=x= .5 + .3*sin(advx); |
| 192 | shape_1_per_frame9=y= .5 + .3*sin(advy); |
| 193 | shape_1_per_frame10= |
| 194 | shape_1_per_frame11= |
| 195 | shape_1_per_frame12=vol = bass_att + mid_att + treb_att; |
| 196 | shape_1_per_frame13=rad = min(.2,vol*.1); |
| 197 | shape_1_per_frame14= |
| 198 | shape_1_per_frame15= |
| 199 | shape_1_per_frame16=a = min(1,vol/4); a2 = a; |
| 200 | shape_1_per_frame17=border_a = 0; |
| 201 | shape_1_per_frame18= |
| 202 | shape_1_per_frame19=ang = vol; |
| 203 | shapecode_2_enabled=0 |
| 204 | shapecode_2_sides=24 |
| 205 | shapecode_2_additive=0 |
| 206 | shapecode_2_thickOutline=0 |
| 207 | shapecode_2_textured=1 |
| 208 | shapecode_2_num_inst=1 |
| 209 | shapecode_2_x=0.200 |
| 210 | shapecode_2_y=0.800 |
| 211 | shapecode_2_rad=0.59958 |
| 212 | shapecode_2_ang=0.00000 |
| 213 | shapecode_2_tex_ang=1.25664 |
| 214 | shapecode_2_tex_zoom=0.49831 |
| 215 | shapecode_2_r=1.000 |
| 216 | shapecode_2_g=1.000 |
| 217 | shapecode_2_b=1.000 |
| 218 | shapecode_2_a=1.000 |
| 219 | shapecode_2_r2=1.000 |
| 220 | shapecode_2_g2=1.000 |
| 221 | shapecode_2_b2=1.000 |
| 222 | shapecode_2_a2=1.000 |
| 223 | shapecode_2_border_r=1.000 |
| 224 | shapecode_2_border_g=1.000 |
| 225 | shapecode_2_border_b=1.000 |
| 226 | shapecode_2_border_a=0.000 |
| 227 | shapecode_3_enabled=0 |
| 228 | shapecode_3_sides=4 |
| 229 | shapecode_3_additive=0 |
| 230 | shapecode_3_thickOutline=0 |
| 231 | shapecode_3_textured=1 |
| 232 | shapecode_3_num_inst=1 |
| 233 | shapecode_3_x=0.860 |
| 234 | shapecode_3_y=0.200 |
| 235 | shapecode_3_rad=0.80814 |
| 236 | shapecode_3_ang=0.00000 |
| 237 | shapecode_3_tex_ang=0.00000 |
| 238 | shapecode_3_tex_zoom=0.45112 |
| 239 | shapecode_3_r=1.000 |
| 240 | shapecode_3_g=1.000 |
| 241 | shapecode_3_b=1.000 |
| 242 | shapecode_3_a=1.000 |
| 243 | shapecode_3_r2=1.000 |
| 244 | shapecode_3_g2=1.000 |
| 245 | shapecode_3_b2=0.900 |
| 246 | shapecode_3_a2=1.000 |
| 247 | shapecode_3_border_r=1.000 |
| 248 | shapecode_3_border_g=1.000 |
| 249 | shapecode_3_border_b=1.000 |
| 250 | shapecode_3_border_a=0.000 |
| 251 | per_frame_init_1=rota = 0; |
| 252 | per_frame_init_2=count = 0; |
| 253 | per_frame_init_3=index = 0; |
| 254 | per_frame_init_4=index2 = rand(32); |
| 255 | per_frame_init_5=rota = index2%4; |
| 256 | per_frame_init_6=tele = 1; |
| 257 | per_frame_init_7=tele_ = tele; |
| 258 | per_frame_init_8=limit = 200; |
| 259 | per_frame_init_9=mov = 0; |
| 260 | per_frame_1=dec_f = pow (0.5, 30/fps); |
| 261 | per_frame_2=dec_m = pow (0.7, 30/fps); |
| 262 | per_frame_3=dec_s = pow (0.9, 30/fps); |
| 263 | per_frame_4=beat = max (max (bass, mid), treb); |
| 264 | per_frame_5=avg = avg*dec_s + beat*(1-dec_s); |
| 265 | per_frame_6=is_beat = above(beat, avg+2*peak) * above (time, t0+.1); |
| 266 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 267 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_m; |
| 268 | per_frame_9=index = (index + is_beat) %32; |
| 269 | per_frame_10=index2 = (index2 + is_beat*bnot(index)) %32; |
| 270 | per_frame_11= |
| 271 | per_frame_12=q22 = peak; |
| 272 | per_frame_13=q27 = index; |
| 273 | per_frame_14=q28 = index2; |
| 274 | per_frame_15= |
| 275 | per_frame_16=kug = kug*dec_s + (1-dec_s)*(index2%5>2)*.05; |
| 276 | per_frame_17=q23 = kug; |
| 277 | per_frame_18= |
| 278 | per_frame_19=trig = is_beat * (index%27==0); |
| 279 | per_frame_20=tele = if(trig, rand(100)/70+.6, tele); |
| 280 | per_frame_21=tele_ = tele_ + min(max(tele-tele_,-.1),.1)*15/fps; |
| 281 | per_frame_22=q16 = tele; |
| 282 | per_frame_23= |
| 283 | per_frame_24=limit = if(trig, rand(200), limit); |
| 284 | per_frame_25=q30 = limit; |
| 285 | per_frame_26= |
| 286 | per_frame_27=rota = rota + min(max(index2%4-rota,-.1),.1)*15/fps; |
| 287 | per_frame_28=rot = (rota-2)*3.1416/2; |
| 288 | per_frame_29= |
| 289 | per_frame_30=light = light * .95 + (1-.95) * (index2%3==0); |
| 290 | per_frame_31=q10 = max(0,light-.2); |
| 291 | per_frame_32= |
| 292 | per_frame_33=vol = bass+mid+treb; |
| 293 | per_frame_34=vol_ = dec_f * vol_ + (1-dec_f)*vol; |
| 294 | per_frame_35= |
| 295 | per_frame_36=mov = if (mov<=0, vol > 4, vol_ > .5); //### |
| 296 | per_frame_37=dec = .4; |
| 297 | per_frame_38=mov_ = dec * mov_ + (1-dec)*mov; |
| 298 | per_frame_39=movz = movz + (mov_)/fps*2.5; |
| 299 | per_frame_40= |
| 300 | per_frame_41=q4 = index2 * 0.1; q5 = movz; q6 = tele;; |
| 301 | per_frame_42= |
| 302 | per_frame_43=trel = trel + pow(bass,3)/fps*.03; |
| 303 | per_frame_44=q31 = trel; |
| 304 | per_frame_45= |
| 305 | per_frame_46=monitor = vol_; |
| 306 | per_pixel_1=rot += +.0*rad;; |
| 307 | warp_1=`float dist, struc, struc2, len; float2 uv0, uv1; float3 uv2; float4 box; |
| 308 | warp_2=`static const float3x3 RotMat = float3x3(1,0,0,0,1,0,0,0,1); |
| 309 | warp_3=` |
| 310 | warp_4=`static const float3 CamPos = float3(q4,q5,q6); |
| 311 | warp_5=`static const float tele=q16; |
| 312 | warp_6=` |
| 313 | warp_7=`float4 mbox (float3 uvi) {float3 zz, zz0; float tmp, li; |
| 314 | warp_8=` zz = uvi; zz0 = zz; li=0; |
| 315 | warp_9=` for (int n = 0; n <= 7; n++) { |
| 316 | warp_10=` zz = 2.0*clamp(zz,-1,1)-zz; tmp = dot(zz,zz); |
| 317 | warp_11=` zz *= clamp(max(.25/tmp, .25), 0.0, 1.0)*4; |
| 318 | warp_12=` zz = 2.8*zz + zz0;} |
| 319 | warp_13=` return float4(zz,li);} |
| 320 | warp_14=` |
| 321 | warp_15=`shader_body { |
| 322 | warp_16=` |
| 323 | warp_17=`uv1 = (uv-.5)*aspect.xy*tele; |
| 324 | warp_18=`dist = .6; |
| 325 | warp_19=`float z = clamp(abs(1/(uv1.y)),0,12); |
| 326 | warp_20=`uv1 = float2 (uv1.x*z,z*.4); |
| 327 | warp_21=`uv2 = mul(float3(uv1*dist,dist-.0),RotMat)+CamPos; |
| 328 | warp_22=`uv2 = (frac(uv2/8.0+.5)-.5)*8.0; |
| 329 | warp_23=`box = mbox (uv2); |
| 330 | warp_24=`struc2 = length(box.xy)/12; |
| 331 | warp_25=` |
| 332 | warp_26=` |
| 333 | warp_27=`ret.r = saturate(struc2*.01) * (length(box) > q30); |
| 334 | warp_28=` |
| 335 | warp_29=`ret.b = max(GetPixel((uv_orig-.5)*1.04+.5).b*.97,ret.r); |
| 336 | warp_30=` |
| 337 | warp_31=` |
| 338 | warp_32=`} |
| 339 | comp_1=`shader_body |
| 340 | comp_2=`{ |
| 341 | comp_3=`float tele = q16; |
| 342 | comp_4=`float2 uv0 = uv; |
| 343 | comp_5=`uv = float2(abs(uv.x-.5)+.5,uv.y); |
| 344 | comp_6=`uv = abs(uv-.5)+.5; |
| 345 | comp_7=`float3 ret2 = tex2D(sampler_main,uv).xyz; |
| 346 | comp_8=` |
| 347 | comp_9=`float blur1 = lum(GetBlur2(uv)); |
| 348 | comp_10=`ret2 *= (.6+.5*sin(uv.x*10+time)); |
| 349 | comp_11=`ret2= lerp(blur1,ret2,pow(ret2,.05+(mid_att)*.050)); |
| 350 | comp_12=` |
| 351 | comp_13=`float2 uv1 = uv-.5; |
| 352 | comp_14=`float3 ret1 = tex2D(sampler_main, uv) ; |
| 353 | comp_15=` |
| 354 | comp_16=`const float2 hor = float2 (.001,0); |
| 355 | comp_17=`const float2 ver = float2 (0,.001); |
| 356 | comp_18=` |
| 357 | comp_19=`float dx = GetPixel (uv-hor).r - GetPixel (uv+hor).r; |
| 358 | comp_20=`float dy = GetPixel (uv-ver).r - GetPixel (uv+ver).r; |
| 359 | comp_21=`float2 dz = float2 (dx,dy); |
| 360 | comp_22=` |
| 361 | comp_23=`dz += abs(tex2D (sampler_noise_hq,uv1/(-.1/tele+rad)*q22*q23+q31)-.5)*.1; |
| 362 | comp_24=` |
| 363 | comp_25=`uv1 = uv1 -4*dz; |
| 364 | comp_26=`float dots = saturate(.02/length(uv1)); |
| 365 | comp_27=` |
| 366 | comp_28=`ret1 = 0.3*lum(ret1)+dots*ret2*(6+mid*3); |
| 367 | comp_29=`ret = ret1; |
| 368 | comp_30=` |
| 369 | comp_31=`uv1 = uv-.5 + .4*GetPixel(uv).rb ; |
| 370 | comp_32=`ret += exp(-20*(length(frac((uv1.x)*3-time)-.5)))*q10 ; |
| 371 | comp_33=` |
| 372 | comp_34=`//ret = GetPixel(uv); |
| 373 | comp_35=`} |